home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / All_In_One2073016282007.psc / All In One Math / frmquad.FRM < prev   
Text File  |  2007-06-26  |  6KB  |  202 lines

  1. VERSION 5.00
  2. Begin VB.Form frmquad 
  3.    AutoRedraw      =   -1  'True
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Quadratic Equation Solver"
  6.    ClientHeight    =   3105
  7.    ClientLeft      =   150
  8.    ClientTop       =   150
  9.    ClientWidth     =   4260
  10.    FillColor       =   &H80000000&
  11.    Icon            =   "frmquad.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3105
  17.    ScaleWidth      =   4260
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.TextBox txtValues 
  20.       Height          =   285
  21.       Index           =   0
  22.       Left            =   720
  23.       TabIndex        =   3
  24.       Top             =   720
  25.       Width           =   495
  26.    End
  27.    Begin VB.TextBox txtValues 
  28.       Height          =   285
  29.       Index           =   1
  30.       Left            =   1680
  31.       TabIndex        =   2
  32.       Top             =   720
  33.       Width           =   495
  34.    End
  35.    Begin VB.TextBox txtValues 
  36.       Height          =   285
  37.       Index           =   2
  38.       Left            =   2640
  39.       TabIndex        =   1
  40.       Top             =   720
  41.       Width           =   495
  42.    End
  43.    Begin VB.CommandButton cmdSolve 
  44.       Caption         =   "&Solve!"
  45.       Default         =   -1  'True
  46.       Enabled         =   0   'False
  47.       Height          =   375
  48.       Left            =   3240
  49.       TabIndex        =   0
  50.       ToolTipText     =   "Click to Solve your Equation"
  51.       Top             =   720
  52.       Width           =   855
  53.    End
  54.    Begin VB.Label Label6 
  55.       Caption         =   "= 0"
  56.       Height          =   255
  57.       Left            =   2760
  58.       TabIndex        =   16
  59.       Top             =   2760
  60.       Width           =   375
  61.    End
  62.    Begin VB.Label lblc1 
  63.       Caption         =   "c"
  64.       Height          =   255
  65.       Left            =   2400
  66.       TabIndex        =   15
  67.       Top             =   2760
  68.       Width           =   255
  69.    End
  70.    Begin VB.Label Label4 
  71.       Caption         =   "x +"
  72.       Height          =   255
  73.       Left            =   2160
  74.       TabIndex        =   14
  75.       Top             =   2760
  76.       Width           =   255
  77.    End
  78.    Begin VB.Label lblb1 
  79.       Caption         =   "b"
  80.       Height          =   255
  81.       Left            =   1920
  82.       TabIndex        =   13
  83.       Top             =   2760
  84.       Width           =   255
  85.    End
  86.    Begin VB.Label lblX 
  87.       Caption         =   "x2 + "
  88.       Height          =   255
  89.       Left            =   1440
  90.       TabIndex        =   12
  91.       Top             =   2760
  92.       Width           =   495
  93.    End
  94.    Begin VB.Label Label2 
  95.       Caption         =   "Type in your constants"
  96.       Height          =   255
  97.       Left            =   600
  98.       TabIndex        =   11
  99.       Top             =   120
  100.       Width           =   3135
  101.    End
  102.    Begin VB.Label Label1 
  103.       Caption         =   "Solution"
  104.       Height          =   255
  105.       Left            =   1800
  106.       TabIndex        =   10
  107.       Top             =   1200
  108.       Width           =   735
  109.    End
  110.    Begin VB.Label lblSolution 
  111.       BorderStyle     =   1  'Fixed Single
  112.       Height          =   735
  113.       Left            =   360
  114.       TabIndex        =   9
  115.       Top             =   1560
  116.       Width           =   3705
  117.    End
  118.    Begin VB.Label lblEquation 
  119.       AutoSize        =   -1  'True
  120.       Caption         =   "Equation: "
  121.       Height          =   195
  122.       Left            =   480
  123.       TabIndex        =   8
  124.       Top             =   2760
  125.       Width           =   720
  126.    End
  127.    Begin VB.Label lblA 
  128.       Caption         =   "&a:"
  129.       Height          =   255
  130.       Left            =   480
  131.       TabIndex        =   7
  132.       Top             =   720
  133.       Width           =   255
  134.    End
  135.    Begin VB.Label lblB 
  136.       Caption         =   "&b:"
  137.       Height          =   255
  138.       Left            =   1440
  139.       TabIndex        =   6
  140.       Top             =   720
  141.       Width           =   255
  142.    End
  143.    Begin VB.Label lblC 
  144.       Caption         =   "&c:"
  145.       Height          =   255
  146.       Left            =   2400
  147.       TabIndex        =   5
  148.       Top             =   720
  149.       Width           =   255
  150.    End
  151.    Begin VB.Label lbla1 
  152.       Caption         =   "a"
  153.       ForeColor       =   &H00000000&
  154.       Height          =   255
  155.       Left            =   1200
  156.       TabIndex        =   4
  157.       Top             =   2760
  158.       Width           =   255
  159.    End
  160. End
  161. Attribute VB_Name = "frmquad"
  162. Attribute VB_GlobalNameSpace = False
  163. Attribute VB_Creatable = False
  164. Attribute VB_PredeclaredId = True
  165. Attribute VB_Exposed = False
  166. Option Explicit
  167.  
  168.  
  169.  
  170. Dim A As Single
  171. Dim b As Single
  172. Dim c As Single
  173. Dim X1 As Single
  174. Dim X2 As Single
  175. Dim Discriminant As Single
  176. Dim Answer As String
  177.  
  178. PriveHbs Single
  179. Dim Answer As String
  180.  
  181. Dim Discriminant As Single
  182. Dim Answer As String
  183.  
  184. PriiCC     Answer Ae
  185. Dim X2Ple
  186. DadNte VB_3ab As Singledex  a"    TabInd
  187. Dim X1 ADim Answer As String
  188.  
  189. Dimta
  190. Attrib7trihsgu7
  191.    TbaExpl End
  192.    BegnaWMdngle
  193. Dim Ans
  194. Xrimi5As Single55
  195.   lesedbealues 
  196.       Answer AegnaWM4le"a1 ADim Answer As String
  197.  
  198. Dimta
  199. Attrib7trihsgu7
  200.    TbaExfttt            =   1440
  201.       TabIndex        =   6
  202.       To     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBxx1BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBxx1BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBxx1BBBBBBBBBBBBBBBBgA_n